import request from '@/utils/request'

// 验证MQTT服务器切换
export function validateSwitchMqttApi(params: any) {
    return request({
        url: `/gateway/mqtt/switch/${params.gatewayId}/validate`,
        method: 'post',
        params
    })
}
//执行MQTT服务器切换
export function switchSwitchMqttApi(params: any) {
    return request({
        url: `/gateway/mqtt/switch/${params.gatewayId}/switch`,
        method: 'post',
        params
    })
}
export function protocolmqtt(params: any) {
    return request({
        url: `/ems/protocol/mqtt/process/${params.gatewayId}`,
        method: 'post',
        params
    })
}
export function gdevcom(params: any) {
    return request({
        url: `/ems/protocol/mqtt/gdevcom`,
        method: 'get',
        params
    })
}